//
//  MPViewController.m

#import "MPViewController.h"

@interface MPViewController()

@end

@implementation MPViewController


-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController.navigationBar setNavigationBarStyleWithColor:[UIColor blueColor] translucent:YES];

}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Test" style:UIBarButtonItemStylePlain target:self action:@selector(btnClick)];
    [self getHomePath];
}

- (void)btnClick
{
    NSLog(@"Click");
//    [[NBServiceGet() appCenter] prepareApp:@"12345678" version:@"1.0.0.3" process:^(NAMAppPrepareStep step, id info) {
//
//    } finish:^(NAMApp *app, NSError *error) {
//        if (!error) {
//            dispatch_async(dispatch_get_main_queue(), ^{
//                [NBServiceGet()  startSession:@{@"appId":@"12345678",@"version":@"1.0.0.3"}
//                                     animated:YES];
//            });
//        }
//    }];
//    [[NBServiceGet() appCenter] requestAllApps:nil finish:^(NSDictionary *data, NSError *error) {
//
//    }];
    [[NBServiceGet() appCenter] requestApps:nil param:nil finish:^(NSDictionary *data, NSError *error) {


    }];
//    [[NBServiceGet() appCenter] downloadAllApps];
//
//    NSDictionary *dic = [[NBServiceGet() appCenter] installApps:@{@"appId":@"12345678"}];
//
//    NSArray *arr = [[NBServiceGet() appCenter] allAppIds];
   


}
//获取沙盒路径
- (NSString *)getHomePath{
    NSString *path = NSHomeDirectory();
    NSLog(@"path = %@", path);
    return path;
}

@end
